fix string comparison in js

On Mac OS X the string comparison did not work, adding a reset-char did the work. (Arduino is using println).

This patch works with craftbukkit version1.6.4-R2.0/1.7.2-R0.3 and scriptcraft version v2.0.6-2014-03-16.