Updated hapi server to get wp posts and js on the frontend