Return element from close method.

I didn't see anything about what you were using to compress this (or even if I should), but I used uglifyjs.