Fix *.js errors