Removes redundant stringify statement in js