complete the js