Fix few javascript error.