Get the color from element if using jqLite

The previous version's color fetching did not work if not using jQuery. The jqLite does not return the color, so I've added a function to get it even if jQuery isn't available.