Moved data and some setup to external JS files.