2D shadows in Javascript