jayScript.js version1

A different approach