adds uglifier
updates production config
simplifies JS compressor config
refactors javascript structure