fixing some JS path issues and a hash update bug