Compile coffeescript to js directory.
Separate key derivation function for different key mode.