Code snippets for dynamically loading JavaScript and CSS