Use object var instead of module var
Remove stylesheet reference
Variable scope fixes
Merge pull request #6 from Roave/fixes

More fixes for #4