JavaScript mock toolkit