I just modified `registerJs()`. I don't think we need `$position` parameter since the js code should always be registered within "ready". Otherwise the DOM element may not be available.

Because of the new version of `registerJs()`, I think perhaps we don't need `registerPlugin()` anymore.