fixed option parsing (opt.on returned nil)
added --cors option to webapp to enable Cross-Origin Resource Sharing