separated localfile.js so it can be more easily included in a new project