Adds license information
Fixes typo in method name
First shot to specify the type of the AJAX request
Refines error output for the AJAX call
Adds Apache 2.0 license header to render.js
Changes default request type to "OPTIONS"
Merge pull request #6 from koppor/master

Adds Apache 2.0 license information and OPTIONS as default parameter