fixing deprecated code in jade template for index