separated javascript views from one another