moved script tags into body tag