moved javascript from .html to js/