Get views and js working correctly