Create ressource_pop.js

unfinished
Update ressource_pop.js
Update ressource_pop.js

style consolidation
tuning modules into objects: engine.js