adjusted javascript, commented out larger j script