Make use of javascript_tag instead of hardcoded script