Moved javascript at the end