Java Script Assignment