removed jquery dependency
Added offsets & removes style
Removed placeholder
Updates width on resize
Uses  to evaluate passed in function