The resulting javascript code may not be entirely correct as far as syntax.