made changes to the js reload option