cleared up a few issues with js lint, added click functions