Add Math to JavaScript generator