added jslibs_reg to solve directory problems, this file can also be used to call the same jslibs from an inferior directory path