Fixing bundler core client side script to not use nested arrays. Also simplified output.