[FIXED] remove jquery dependency
[FIXED] add function to global scope
[EDIT] improve description