moved javascript to head