I've updated the extension to fix the error when re-applying. Just reinstall and it shouldn't happen any more.
The runtime issue is a code placement issue. This can happen occasionally with Dreamweaver. Just move line 17 up above with the other includes and that error should go away. It is a library used in the code but it was placed below the code that references it and that caused the undefined error.