Adding views and javascript