Major code rework.

Made things more organized moving code blocks to their own files in
client/js/ folder including animate.js, functions.js and init.js

This will help especially when using a tabbed editing environment so
that you don't need to scroll through or hit find any time you need a
specific area of code. This also will help by allowing us to snapshot
the js files for performance when release versions come along!