Moving JS calls to head, using minified versions