Create localFactory.js

first file