updating to new version; moving JS from head to end of body