moved script tags to just above end of body