Fixed some JS errors on the ref details page
Merged from Curtis' craziness
Added my new directives to the correct location