js for create a wrevel