cleaned up js/views/index.js