fix jquery reload and fix bits and pieces