make it work without requirejs
add example
update readme