Music Theory in Javascript