Cleaned up JS files by moving models and views to their own files.