reduce javascript from 1.5 mb to 100 kb