Working on reducing code complexity

- Split animate function down into 2 separate functions for CSS and JS
animation
- Split setting of initial styles in setUpElements into a separate
function
- Fix mixed tabs and spaces
- Allow radix not to be passed to parseInt when not required