more work on #117, ajax working now