Preparation for RequireJS usage.

Converted remote script references to local domain ones.