Initial JS file Created

Created JS file and added basic comments.