Fixed up some issues and cleaned code

Fixed some issues with the javascript so that individual pivotal tiles were changing onclick. Abstracted the pivotal javascript out into it's own asset as well.