Fixed strpos bug.
Refactored files. Moved js to own file.
Debug field now without br