Re-structure load-method of html5 engine

Also we should not delay removing the loading state of player in ready
callback. If delayed, most of the api methods won't work in a load
callback.

Fixes #284