initial js setup