added places_gen.js, seperated js files