Javascript Update, css compatibility