Manually manage the javascript