Moved script element to correct location