Cleanup code

- removed the 'strict mode'
- rename some variables
Added 'link' to tag
Fixed autosearch