Added some of the functionality for signature

having issues with the javascript.