PHP ported to EJS, styling working correctly