adds javascript infrastructure