Finally got it working :/

Something like that?
'app' is not defined.<br>'$firebase' is defined but never used.