working on javascript, got some stuff to work