Moved js to bottom of file to speed things up