removed semicolon bug in js