fix syntax error + build js