add javascript piano logic