correcting syntax error and adding node app detection