removing type attr from js tag because it is ignored