added type = text/javascript