improved $.parseData by adding second parameter