added type=text/javascript