added the javascript back in