Fix some JS-Compile errors