coffee script version added
base64 and a few fixes
access all functions from everywhere
much better code