Implementation of jQuery subset which works in CocoonJS runtime.