This is not directly possible in HTML 5 that I know of. If the link above works with HTML 5, then awesome.
You can check a simple option here:
It will provide you up to one light effect by basically making a big shadow that is all around the player and follows the player, with a “cut out part” in the shadow which simulates the light. The other options discussed below are a bit more difficult to use.
So, if you wish to have only one light, then you can do it this way, although it’s not perfect. For multiple lights, it’s up to more complex.
If you simply want a shadow and not to make the entire screen “dark”, you can check my little shadow tutorial: