Removed some leftover space.
Converted to Unix line endings. Wrapped the code in a self-executing function.