add webshims compatibility 

fixes  Issue #14.