Fix Moodle 2.3 compatibility
Javascript tidy-up
Updated README and version