full js for lib