append _route, _view, _pub, _sub etc as approrpiate to js files