Moved Previous Record as a constant and injected with JS