trying the javascript