recognition of melodic commands in js