Try moving script to the bottom of body