small bug fixes & better namespacing per jQuery best practices