fixed quotes, and docstrings
removed tabs, converted to double space indent
namespaced functions using IIFE