wrote more on javascript draft