Javascript additions

Added several javascript functions to assist in interacting with the tic
tac toe board