fix warnings
make onWindowResize function work without params
add onload-callback and use throws instead of innerHTML for errors.
use variable for automove instead of interval-reset and start automove after click.
fixed automove and added this functionality to touchevents