appjs should handle heartbeat properly now