JavaScript Node server-side variable parser