Javascript correction