fixed insane error line 1 in js