GJP-13: JsLayer factory register system for different kinds of layers