fix and minimize js