Correct use of LiveReload; now uses middleware to inject the script