moved script tag to default.html