fixes in .js scripts