initializing JS