add onLoad option
Merge pull request #10 from choxi/master

add onLoad option