Updated jQuery call to ensure function is called on page reload
Controller bug