moved javascript to the bottom