Cannot get the results to returned back to my page code function from public .js file function.

@coz Please post you amended code (and put it inside a code block to make it easy to read).