begin work on javascript