placed script at the bottom of html