Basic javascript working. Should get the rest working.