add loadJS funct