Add some function mocks.
Brush up APIs as jQuery plugin.