moved javascript to bottom of page