Tidy up the js warning