LB-1580 Build JS for production

Fixed themes return plugins array.
Removed unneeded libs in the theme build process.