[eluser]kdoole[/eluser]
Hmm... figured it out.
apparently, passing the display() function into variables doesn't work. If I had both display('css') and display('js') in the same controller, no matter if they were going into separate variables, both css and js would go into the first one.
BUT if the function is called in the view, there's no problem.