Generate Javascript for type class dictionary getters
First work on desugaring instance declarations