Compatibility updates

1. Create a JavaScript polling command helper
2. More tests for compat