Hey you might not be glad cause i have no answers but questions how to make my code work... on same subject. HOpe you dont mind :)
Or if you find resolution let me know:

script>
function...