Create modified javascript code