completes the javascript review