load javascript at the end