fixing dependencies for non brjs libraries
moving the instanceof check for JsLib into JsStyleUtility