fixing Unexpected token: punc (:) error