major JS updates and performance improvements
slightly tweaked the JS files