revised assignment operator and inserted code into script tags