Starting to centralize JavaScript in a static file