suggestions on avoiding jquery in controllers