changing stuff up.

killing the idea of php selection to make it pure JS, and adding debug
code instead of always logging to console