did a little test with .on function from firebase

if variable.on.val changes it will complete the entire code that is in the function originaly and then rerun again.

asynchronous