organized and cleaned up javascript code. made it more readable. made footer static instead of absolute.
Merge branch 'master' into gh-pages