Updates to kill of some issues

- Some clean up of the code
- Remove jQuery 1.7.x< support
- Correct the handling of targets