Adding logic to support function expressions for the onLoad listener, added tests for this as well.
Merge pull request #286 from ryanguill/develop

Adding logic to support function expressions for the onLoad listener