small changes to .js