change external js library to internal