Tweaking of LTI.js

Added error message for the case when the action URL is not provided.
Fixed error when it was not loading in LMS. Now the element passed to
the LTI constructor function is handled correctly.
Added comments.