fixed mal-formed js