fix js haml error