build js and embed required.