build cabinet js frontend