Include JS in flavors

#3131