JavaScript technical test