Fix slim syntax in js