Add javascript at end of page