Solved js collisions between referencewidget and recordswidget