replace javascript with tags, to more reasonable