Preventing duplication of JS in minified file