moved script tags to the end of file