added resources.js
Added map to the php file