Added web-mode to deps
Added license, make function code a bit prettier