Fixed some js problems with record pages [MJ-795]

All tests pass