moved working JS scripts to bottom of body