Moved javascript to files, attempted index layout