organized and cleaned up javascript code. made it more readable. made footer static instead of absolute.