Return original receipt javascript