compiled javascript was embedded twice