Preprocess JavaScript too

It's useful to disable location history in development for example