update MD file with proper formatting for code snippets.
remove dependency on jQuery Migrate by adapting the browser logic.