Moved script inside html