Move code for script loading to asset file.
Don't manually strip newlines from social script.