Finally got it working :/

Something like that?
'console' is not defined.