Generate javascript model from kmf