added bower support, & closure for selector