Making a simple piano with Javascript