moved javascript to body