added defer to JS
initial commit