Fix some stupid in the javascript