added "<script type="text/javascript">" into code