Finally got it working :/

Something like that?
'app' is not defined.