Use :javascript filter in HAML.