commit on 30-11-2013 by sanjay

This is extended from previous code, used jquery event handlers