moved script tags to the end of body