Testing some insane Javascript