wrapped .js adder in anonymous function