Generated code for javascript fro kms-core