start to work on javascript code