cleaned up a bit in .js-files