fix JS errors

see #199