Put functions into a closure
Merge branch 'master' of https://github.com/demophoon/MessagingIO

Conflicts:
	src/core.js