Return a correct object from the render function

Since the output of this function is often returned to the outside, it
should return a correct JavaScript object. The code itself should not
be affected by this, but when plottin the return value out, it will
actually look like an object and not an empty array.

Signed-off-by: Michael Diener <dm.menthos@gmail.com>
complement function fix

The complement function, when using hex values, put together a hex string
that looked like this: ##000000#000000#000000. I fixed this by only calling
rgb2hex at the end of all the complementary calculations. Now it returns the
correct #000000 when putting in #ffffff.

Signed-off-by: Michael Diener <dm.menthos@gmail.com>
new line at end of file

Signed-off-by: Michael Diener <dm.menthos@gmail.com>
Merge pull request #4 from mdiener/master

Fixed two small bugs!