fix for 1.4

Note that .length wont be available for users so you will want to fix that..  Fixes #2 
also see http://blog.etherpad.org/2014/12/15/etherpad-1-4-plugin-upgrade/