Fix some syntax error and modifed js file