outside views and javascript