Updated using javascript post