jsbrowser: Add API for common browser actions