Javascript and JQuery for etch a sketching