Moved js into js file... not in the view