Fix compilation error on 'elif'
Mac version requirement
support document.cookie for file protocol
bump version to 0.4.0
[README] update for 0.4.0