setting up views and js