badge create in javascript now