Modify profile_polyline if it already exists.
Disable js minimisation.

This reverts commit 5341e07ecd3dc1e31ce67508fb11772f97a5357d.