Fixed camera issues.

* New: Renamed constant.js to res.js for a shorter namespace.
* Fixed: Focusing the current map to center of camera.