Moved script out of html