I just found out that it is possible with pure javascript. It's supported in all the major browsers. Find more information here.