Global refactoring of map js
Route view merge