[js] fix decl. after stmnt.