Add conditional javascript loading, auto select minified version if not local env (dev)