JavaScript XML filter for HAML