initial JS setup