Create jsanddom.js

Adding the Javascript Function details as per the request