made js path optional