Added A part of the Javascript

Added a part of the javascript, this script is not ready for
production, could not even call it Beta.
More updates will be added.