Fix JavaScript in haml.