Organized JavaScript files, fixed bug with homepage