fixed javascript issues with injection into individual controllers