Add type="text/javascript" to script