javascript ex 2