Paste Mechanism Updated

Now Paste is handled by javascript.