Added javascript bridge test page and fixed wrapper to work with proxy objects

Added js test to open gl
Added extra checks to stop waiting for ever on message send