javascript improved