Added support for non-jquery chains + TESTS

Allows you to switch library. Especially useful with 3rd party library
integration, where you can define inside view:

    function vimeo(){
        return
$this->api->js()->_library('window.player['.json_encode($this->getJSID()
.']');
    }