[fix] - use middleware to transfer javascript,css helpers and user from request to template