How to take screenshot of a div using JavaScript?