Move the active selector change to a callback
Update minified version
Update tests