[BUG #7360] Added unit test to make sure the generated URL is compliant to the standard.

- Changed the implementation of the creation of the callback name - it is now a javascript identifier
- Added internal method to support the unit test
[BUG #7360] Fixed the unit test which tests the JSONP callback implementation