javaScript alterations