fixed code to link up script to html file