Some error handling (no JS, API availability)

resolves #32
Merge pull request #34 from martinleopold/master

Some error handling (no JS, API availability)