Fixed mainjs to avoid conflict