added uglify to compress size, updates to js