Fix #27 - race condition when element style is not set

Fix for issue #27 with a $timeout defer

Not sure this is the best workaround, at least it should work consistently if anyone wants a quick fix

Tests pass (updated to match $timeout behaviour)