Testcode for js and php